﻿using System.Configuration;
using System.Xml;

namespace Sirocco.Core
{
    /// <summary>
    /// Mistral Configuration Section. 
    /// This class defines the configuration section of Mistral in app.config.
    /// </summary>
    public class MistralConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("general")]
        public GeneralConfigurationElement General
        { 
            get { return (GeneralConfigurationElement)this["general"]; } 
            set { this["general"] = value; }
        }

        protected override void DeserializeSection(XmlReader reader)
        {
            base.DeserializeSection(reader);
            // You can add custom processing code here.
        }

        protected override string SerializeSection(ConfigurationElement parentElement, string name, ConfigurationSaveMode saveMode)
        {
            var s = base.SerializeSection(parentElement, name, saveMode);
            // You can add custom processing code here.
            return s;
        }
    }
}
